package cn.zn.modules.pz.cur.service.impl;

import cn.zn.modules.pz.cur.dao.TpSpendingMapper;
import cn.zn.modules.pz.cur.entity.TpSpending;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import cn.zn.modules.pz.cur.service.TpSpendingService;

@Service
public class TpSpendingServiceImpl extends ServiceImpl<TpSpendingMapper, TpSpending> implements TpSpendingService {

    @Override
    public TpSpending findByMainId(String mainId) {
        QueryWrapper<TpSpending> queryWrapper = Wrappers.query();
        queryWrapper.eq("TP_MAIN_ID_", mainId);
        return this.getOne(queryWrapper);
    }
}


